package com.yuanfeng.activity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 满减赠折规则表
 * @TableName activity_reduction_policy_rule
 */
@TableName(value ="activity_reduction_policy_rule")
@Data
public class ActivityReductionPolicyRuleEntity implements Serializable {
    /**
     * 规则ID
     */
    @TableId(type = IdType.AUTO)
    private Integer ruleId;

    /**
     * 活动ID
     */
    private Integer promotionId;

    /**
     * 活动内容
     */
    private String promotionContent;

    /**
     * 是否有赠品:1-有;0-无
     */
    private Integer hasGiveaway;

    /**
     * 赠品ID
     */
    private Integer giveawayId;

    /**
     * 满足金额
     */
    private Integer meetAmount;

    /**
     * 优惠内容
     */
    private String discountContent;

    /**
     * 折扣类型:1-满减;2-满赠;3-满折
     */
    private Integer discountType;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}